

















package com.takeaway.const_;

/**
 * @author 后台赖骏
 */
public class Const {

    /**
        *数字类常数，主要用于权限判断，页数判断等
     */
    public final static int USER_ID = 0;
    public final static int BUSINESS_ID = 1;
    public final static int MANAGER_ID = 2;
    public final static int BAN_USER_ID = -1;
    public final static int BAN_BUSINESS_ID = -2;
    public final static int BAN_SHOP_ID = 2;
    public final static int DEFAULT_BEGIN = 0;
    public final static int LIST_NUM = 9;
    public final static int SHOP_MANAGE_CODE = 0;
    public final static int SHOP_RUN_CODE = 1;
    /**
     * 字段类型常量，主要用于dao层中放入需要查询的字段
     */
    public final static String FIELD_USERID = "userId";
    public final static String FIELD_SHOP_ID = "shopId";
    public final static String FIELD_BUSINESS_ID = "ownerId";
    public final static String FIELD_SHOP_CODE = "shopCode";
    public final static String FIELD_USERNAME = "username";
    public final static String FIELD_ID = "id";
    /**
     * 消息类型常量，主要在req中放入此常量，在转发到Msg.jsp中进行消息展示
     */
    public final static String LOGIN_ERROR_MSG = "登录失败，账号或者密码错误";
    public final static String BOOK_SUCCESS_MSG = "订餐成功";
    public final static String BOOK_ERROR_MSG = "订餐失败";
    public final static String SEARCH_ERROR_MSG = "查询失败";
    public final static String DELETE_ERROR_MSG = "删除失败";
    public final static String DELETE_SUCCESS_MSG = "删除成功";
    public final static String CREATE_ERROR_MSG = "你已创建过商店了";
    public final static String CREATE_SUCCESS_MSG = "创建商店成功";
    public final static String UPDATE_SUCCESS_MSG = "修改成功";
    public final static String UPDATE_ERROR_MSG = "修改失败";
    public final static String GET_ERROR_MSG = "领取失败";
    public final static String GET_SUCCESS_MSG = "领取成功";
    public final static String ADD_ERROR_MSG = "添加失败";
    public final static String ADD_SUCCESS_MSG = "添加成功";
    public final static String OPERATE_SUCCESS_MSG = "操作成功";
    public final static String FEEDBACK_SUCCESS_MSG = "反馈成功";
    public final static String FEEDBACK_ERROR_MSG = "反馈失败";
    public final static String BAN_LOGIN_MSG = "你的账号已被管理员封禁，上线失败";
    public final static String REGISTER_SUCCESS_MSG = "注册成功";
    public final static String REGISTER_ERROR_MSG = "注册失败，用户名已被占用";
    public final static String SENT_SUCCESS_MSG = "发送成功";
    public final static String ILLEGAL_INPUT_MSG = "非法操作，请正确操作";
    public final static String MANAGE_MSG = "商店未被审核或者被封禁";
}
